/**
 * 停用状态描述映射
 */
const CommonStatusMap: Map<string, string> = new Map<string, string>([
  ["0", "正常"],
  ["1", "停用"],
]);

/**
 * 停用状态样式映射
 */
const CommonStatusStyleTypeMap: Map<string | boolean, string> = new Map<
  string | boolean,
  string
>([
  ["0", "success"],
  ["1", "danger"],
  [true, "success"],
  [false, "info"],
]);

// 文章类型map
const articleTypeMap: Map<string, string> = new Map<string, string>([
  ["0", "理念介绍"],
  ["1", "政策解读"],
  ["2", "热点新闻"],
  ["3", "共育活动"],
]);

// 是否轮播
const isSwiperMap: Map<boolean, string> = new Map<boolean, string>([
  [true, "已轮播"],
  [false, "未轮播"],
]);

/**
 * 源类型映射
 */
const SourceTypeMap: Map<string, string> = new Map<string, string>([
  ["0", "其他"],
  ["1", "课程"],
  ["2", "读书"],
  ["3", "章节"],
  ["4", "评论"],
  ["5", "日记"],
  ["6", "笔记"],
  ["7", "评价"],
  ["8", "文章"],
]);

export {
  CommonStatusMap,
  CommonStatusStyleTypeMap,
  SourceTypeMap,
  articleTypeMap,
  isSwiperMap,
};
